/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package org.jackysoft.opensymphony.workflow.util;

import java.util.Map;

import org.jackysoft.opensymphony.workflow.Register;
import org.jackysoft.opensymphony.workflow.WorkflowContext;
import org.jackysoft.opensymphony.workflow.WorkflowException;
import org.jackysoft.service.VariableService;



/**
 * This is a register, which helps logging using commons-logging.
 * It wraps a Logger instance which is linked to the "OSWorkflow/<workflow_name>/<id>" category
 *
 * Following optional arguments available:
 * <ul>
 *  <li>Category="OSWorkflow" - change the name of the log category other than "OSWorkflow"</li>
 * </ul>
 *
 *
 * If you register this class as "Logger", then you may use it from a Beanshell script like:
 * <pre>
 * logger = transientVars.get("logger");
 * logger.debug("hello logger!");
 * </pre>
 *
 * @author Zoltan Luspai
 */

public class LogRegister implements Register {

	@Override
	public Object registerVariable(WorkflowContext context,
			org.jackysoft.entity.WorkflowEntry entry, Map args,
			VariableService vservice) throws WorkflowException {
		// TODO Auto-generated method stub
		return null;
	}
  
}
